const state = {
  area_id: '',
  authtypeQaNetworkId: '',
  templateInfo: null,
  isChange: false,
};

const mutations = {
  CLEAR_MULTIOUT_STATE(state) {
    state.area_id = '';
    state.authtypeQaNetworkId = '';
  },

  SET_AUTH_AREA_ID(state, payload) {
    state.area_id = payload;
  },
  SET_AUTH_TYPE_QA_NETWORKID(state, payload) {
    state.authtypeQaNetworkId = payload;
  },
  SET_AUTH_TEMPLATE_INFO(state, payload) {
    state.templateInfo = payload;
  },
  SET_AUTH_CHANGE(state, payload) {
    state.isChange = payload;
  },
};

const actions = {};

const getters = {};

export default {
  namespaced: true, //开启命名空间，更好的区分使用stage,防止不同stage模块中的方法重名
  state,
  getters,
  mutations,
  actions,
};
